<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% String contextPath = request.getContextPath(); %>

<%@page import="common.*" %>
 <%@ page import="java.util.*" %>
<%	
	String name =(String)session.getAttribute("name");
	Integer rights = (Integer)session.getAttribute("rights");

%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<%= contextPath %>/css/order.css" rel="stylesheet" type="text/css">
		<title>担当者メニュー</title>
	</head>
	<body>
		<div>
			<h1>担当者名:<%=name %></h1>
			<h2>権限:<%=rights %></h2>
			<%if(rights == 3){%>
				<a href="<%= contextPath %>/operator/telOrder.jsp">電話注文</a><br>
				<a href="/maintenance?action=customer">顧客メンテナンス</a><br>
				<a href="/maintenance?action=item">商品メンテナンス</a><br>
				<a href="/maintenance?action=operator">オペレータメンテナンス</a><br>
				<a href="<%= contextPath %>/operator/deli.jsp">出荷管理</a><br>
				<a href="<%= contextPath %>/operator/cash.jsp">請求管理</a><br>
				<a href="<%= contextPath %>/operator/jisseki.jsp?req=order">受注実績管理</a><br>
				<a href="<%= contextPath %>/operator/jisseki.jsp?req=sale">売上実績管理</a><br>
			<%} %>
			<%if(rights == 2){ %>
				<a href="<%= contextPath %>/operator/telOrder.jsp">電話注文</a><br>
				<a href="/maintenance?action=customer">顧客メンテナンス</a><br>
				<a href="/maintenance?action=item">商品メンテナンス</a><br>
				<a href="<%= contextPath %>/operator/deli.jsp">出荷管理</a><br>
				<a href="<%= contextPath %>/operator/cash.jsp">請求管理</a><br>
				<a href="<%= contextPath %>/operator/jisseki.jsp?order">受注実績管理</a><br>
				<a href="<%= contextPath %>/operator/jisseki.jsp?sale">売上実績管理</a><br>
			<%} %>
			<%if(rights==1 || rights ==null){ %>
				<a href="<%= contextPath %>/operator/telOrder.jsp">電話注文</a><br>
				<a href="/maintenance?action=customer">顧客メンテナンス</a><br>
				<a href="<%= contextPath %>/operator/deli.jsp">出荷管理</a><br>
			<%} %>
			

			<form action="<%= contextPath %>/operator/index.jsp">
				<input type= "submit" value="ログアウト" id="log">
				<%--session.invalidate(); --%>
			</form>
		</div>
	</body>
</html>
